<%--
  Created by IntelliJ IDEA.
  User: 王宇航
  Date: 2022/4/28
  Time: 11:29
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css"
      integrity="sha384-HSMxcRTRxnN+Bdg0JdbxYKrThecOKuH5zCYotlSAcp1+c8xmyTe9GYg1l9a69psu" crossorigin="anonymous">
<head>
    <title>Title</title>
</head>
<body>
<ol class="breadcrumb">
    <li><a href="${pageContext.request.contextPath}/QueryUserByPageServlet">主页</a></li>
    <li class="active">修改头像</li>
</ol>
<form action="${pageContext.request.contextPath}/uploadFileServlet?id=1" class="form-horizontal" method="post" enctype="multipart/form-data">
   <table class="table table-bordered ">
       <tr>
           <td>用户名:</td>
           <td>${sessionScope.name}</td>
           </tr>
       <tr>
           <td>上传头像图片:</td>
           <td><input type="file" name="myfile" placeholder=""><lable style="color: crimson">注意：文件要小于10kb</lable>
       </tr>
       <tr><td></td>
           <td><input type="submit"></td>
           </tr>
   </table>
</form>
</body>
</html>
